package com.zhou.util.tag;

public class Option extends Tag {
    public Option() {
        super("option");
    }
    public Option(String n,Object v) {
        this();
        setVal(v).append(n);
    }
    public Option setVal(Object v){
        super.val(String.valueOf(v));
        return this;
    }
    public Option setText(String v){
        super.text("").append(v);
        return this;
    }
    public Option select(){
        attr("selected","selected");
        return this;
    }
    public static Option defaultOption(){
        return new Option("请选择","");
    }
}
